home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cato / Xm / XmDropSite.z / XmDropSite
Text File  |  1998-10-20  |  46KB  |  661 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee - The DropSite Registry
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           ####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////DDDDrrrraaaaggggDDDDrrrroooopppp....hhhh>>>>
  13.  
  14.  
  15.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  16.           This page documents version 1.2 of the Motif library.
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.           A client registers a widget or gadget as a drop site using
  20.           the XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeRRRReeeeggggiiiisssstttteeeerrrr function.  In addition, this routine
  21.           defines the behavior and capabilities of a drop site by
  22.           specifying appropriate resources.  For example, the
  23.           XXXXmmmmNNNNiiiimmmmppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss and XXXXmmmmNNNNnnnnuuuummmmIIIImmmmppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss resources identify
  24.           respectively the selection target types and number of types
  25.           supported by a drop site.  The visual animation effects
  26.           associated with a drop site are also described with DropSite
  27.           resources.
  28.  
  29.           Drop site animation effects that occur in response to the
  30.           pointer entering a valid drop site are called drag-under
  31.           effects.  A receiver can select from several animation
  32.           styles supplied by the toolkit or can provide customized
  33.           animation effects.  Drag-under effects supplied by the
  34.           toolkit include border highlighting, shadow in/out drawing,
  35.           and pixmap representation.
  36.  
  37.           When a preregister drag protocol style is used, the toolkit
  38.           generates drag-under visual effects based on the value of
  39.           the XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnSSSSttttyyyylllleeee resource.  In dynamic mode, if the
  40.           drop site XXXXmmmmNNNNddddrrrraaaaggggPPPPrrrroooocccc resource is NULL, the toolkit also
  41.           provides animation effects based on the XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnSSSSttttyyyylllleeee
  42.           resource.  Otherwise, if the XXXXmmmmNNNNddddrrrraaaaggggPPPPrrrroooocccc routine is
  43.           specified, the receiver can either assume responsibility for
  44.           animation effects (through the XXXXmmmmNNNNddddrrrraaaaggggPPPPrrrroooocccc routine) or rely
  45.           on the toolkit to provide animation.
  46.  
  47.           Drop sites may overlap.  The initial stacking order
  48.           corresponds to the order in which the drop sites were
  49.           registered.  When a drop site overlaps another drop site,
  50.           the drag-under effects of the drop site underneath are
  51.           clipped by the obscuring drop site(s).
  52.  
  53.           The XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeUUUUppppddddaaaatttteeee routine sets resources for a widget
  54.           that is registered as a drop site.  XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeRRRReeeettttrrrriiiieeeevvvveeee gets
  55.           drop site resource values previously specified for a
  56.           registered widget.  These routines are used instead of
  57.           XXXXttttSSSSeeeettttVVVVaaaalllluuuueeeessss and XXXXttttGGGGeeeettttVVVVaaaalllluuuueeeessss.
  58.  
  59.         CCCCllllaaaasssssssseeeessss
  60.  
  61.  
  62.  
  63.      PPPPaaaaggggeeee 1111                                          ((((pppprrrriiiinnnntttteeeedddd 4444////33330000////99998888))))
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  71.  
  72.  
  73.  
  74.           XmDropSite does not inherit from any widget class.
  75.  
  76.         NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
  77.           The following table defines a set of widget resources used
  78.           by the programmer to specify data.  To reference a resource
  79.           by name or by class in a .Xdefaults file, remove the XXXXmmmmNNNN or
  80.           XXXXmmmmCCCC prefix and use the remaining letters.  To specify one of
  81.           the defined values for a resource in a .Xdefaults file,
  82.           remove the XXXXmmmm prefix and use the remaining letters (in
  83.           either lowercase or uppercase, but include any underscores
  84.           between words).  The codes in the access column indicate if
  85.           the given resource can be set at creation time (CCCC), set by
  86.           using XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeUUUUppppddddaaaatttteeee (SSSS), retrieved by using
  87.           XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeRRRReeeettttrrrriiiieeeevvvveeee (GGGG), or is not applicable (NNNN////AAAA).
  88.  
  89.                                              XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  90.      NNNNaaaammmmeeee                      CCCCllllaaaassssssss                     TTTTyyyyppppeeee             DDDDeeeeffffaaaauuuulllltttt                     AAAAcccccccceeeessssssss
  91.      _______________________________________________________________________________________________________
  92.      XmNanimationMask          XmCAnimationMask          Pixmap           XmUNSPECIFIED_PIXMAP        CSG
  93.      XmNanimationPixmap        XmCAnimationPixmap        Pixmap           XmUNSPECIFIED_PIXMAP        CSG
  94.      XmNanimationPixmapDepth   XmCAnimationPixmapDepth   int              0                           CSG
  95.       XmNanimationStyle        XmCAnimationStyle         unsigned char    XmDRAG_UNDER_HIGHLIGHT      CSG
  96.      XmNdragProc               XmCDragProc               XtCallbackProc   NULL                        CSG
  97.      XmNdropProc               XmCDropProc               XtCallbackProc   NULL                        CSG
  98.      XmNdropRectangles         XmCDropRectangles         XRectangle *     dynamic                     CSG
  99.      XmNdropSiteActivity       XmCDropSiteActivity       unsigned char    XmDROP_SITE_ACTIVE          CSG
  100.      XmNdropSiteOperations     XmCDropSiteOperations     unsigned char    XmDROP_MOVE | XmDROP_COPY   CSG
  101.      XmNdropSiteType           XmCDropSiteType           unsigned char    XmDROP_SITE_SIMPLE          CG
  102.      XmNimportTargets          XmCImportTargets          Atom *           NULL                        CSG
  103.      XmNnumDropRectangles      XmCNumDropRectangles      Cardinal         1                           CSG
  104.      XmNnumImportTargets       XmCNumImportTargets       Cardinal         0                           CSG
  105.  
  106.           XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnMMMMaaaasssskkkk
  107.                     Specifies a mask to use with the pixmap specified
  108.                     by XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnPPPPiiiixxxxmmmmaaaapppp when the animation style is
  109.                     XXXXmmmmDDDDRRRRAAAAGGGG____UUUUNNNNDDDDEEEERRRR____PPPPIIIIXXXXMMMMAAAAPPPP.
  110.  
  111.           XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnPPPPiiiixxxxmmmmaaaapppp
  112.                     Specifies a pixmap for drag-under animation when
  113.                     the animation style is XXXXmmmmDDDDRRRRAAAAGGGG____UUUUNNNNDDDDEEEERRRR____PPPPIIIIXXXXMMMMAAAAPPPP.  The
  114.                     pixmap is drawn with its origin at the upper left
  115.                     corner of the bounding box of the drop site.  If
  116.                     the drop site window is larger than the animation
  117.                     pixmap, the portion of the window not covered by
  118.                     the pixmap will be tiled with the window's
  119.                     background color.
  120.  
  121.           XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnPPPPiiiixxxxmmmmaaaappppDDDDeeeepppptttthhhh
  122.                     Specifies the depth of the pixmap specified by the
  123.                     XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnPPPPiiiixxxxmmmmaaaapppp resource.  When the depth is 1,
  124.                     the colors are taken from the foreground and
  125.                     background of the drop site widget.  For any other
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  137.  
  138.  
  139.  
  140.                     value, drop site animation occurs only if the
  141.                     XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnPPPPiiiixxxxmmmmaaaappppDDDDeeeepppptttthhhh matches the depth of the
  142.                     drop site window.  Colors are derived from the
  143.                     current colormap.
  144.  
  145.           XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnSSSSttttyyyylllleeee
  146.                     Specifies the drag-under animation style used when
  147.                     a drag enters a valid drop site.  The possible
  148.                     values are
  149.  
  150.  
  151.                     XXXXmmmmDDDDRRRRAAAAGGGG____UUUUNNNNDDDDEEEERRRR____HHHHIIIIGGGGHHHHLLLLIIIIGGGGHHHHTTTT
  152.                       The drop site uses highlighting effects.
  153.  
  154.                     XXXXmmmmDDDDRRRRAAAAGGGG____UUUUNNNNDDDDEEEERRRR____SSSSHHHHAAAADDDDOOOOWWWW____OOOOUUUUTTTT
  155.                       The drop site uses an outset shadow.
  156.  
  157.                     XXXXmmmmDDDDRRRRAAAAGGGG____UUUUNNNNDDDDEEEERRRR____SSSSHHHHAAAADDDDOOOOWWWW____IIIINNNN
  158.                       The drop site uses an inset shadow.
  159.  
  160.                     XXXXmmmmDDDDRRRRAAAAGGGG____UUUUNNNNDDDDEEEERRRR____PPPPIIIIXXXXMMMMAAAAPPPP
  161.                       The drop site uses the pixmap specified by
  162.                       XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnPPPPiiiixxxxmmmmaaaapppp to indicate that it can
  163.                       receive the drop.
  164.  
  165.                     XXXXmmmmDDDDRRRRAAAAGGGG____UUUUNNNNDDDDEEEERRRR____NNNNOOOONNNNEEEE
  166.                       The drop site does not use animation effects.  A
  167.                       client using a dynamic protocol, may provide
  168.                       drag-under effects in its XXXXmmmmNNNNddddrrrraaaaggggPPPPrrrroooocccc routine.
  169.  
  170.  
  171.           XXXXmmmmNNNNddddrrrraaaaggggPPPPrrrroooocccc
  172.                     Specifies the procedure that is invoked when the
  173.                     drop site receives a crossing, motion, or
  174.                     operation changed message.  This procedure is
  175.                     called only when a dynamic protocol is used.  The
  176.                     type of structure whose address is passed to this
  177.                     procedure is XXXXmmmmDDDDrrrraaaaggggPPPPrrrrooooccccCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt.  The reason
  178.                     sent to the procedure is one of the following:
  179.  
  180.  
  181.                     XXXXmmmmCCCCRRRR____DDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____EEEENNNNTTTTEEEERRRR____MMMMEEEESSSSSSSSAAAAGGGGEEEE
  182.  
  183.                     XXXXmmmmCCCCRRRR____DDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____LLLLEEEEAAAAVVVVEEEE____MMMMEEEESSSSSSSSAAAAGGGGEEEE
  184.  
  185.                     XXXXmmmmCCCCRRRR____DDDDRRRRAAAAGGGG____MMMMOOOOTTTTIIIIOOOONNNN____MMMMEEEESSSSSSSSAAAAGGGGEEEE
  186.  
  187.                     XXXXmmmmCCCCRRRR____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN____CCCCHHHHAAAANNNNGGGGEEEEDDDD____MMMMEEEESSSSSSSSAAAAGGGGEEEE
  188.  
  189.  
  190.                     The drag procedure may change the values of some
  191.                     members of the XXXXmmmmDDDDrrrraaaaggggPPPPrrrrooooccccCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt passed to
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 4/30/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  203.  
  204.  
  205.  
  206.                     it.  After the drag procedure returns, the toolkit
  207.                     uses the final values in initializing some members
  208.                     of the callback struct passed to the appropriate
  209.                     callbacks of the initiator (the DragContext's
  210.                     XXXXmmmmNNNNddddrrrrooooppppSSSSiiiitttteeeeEEEEnnnntttteeeerrrrCCCCaaaallllllllbbbbaaaacccckkkk,
  211.                     XXXXmmmmNNNNddddrrrrooooppppSSSSiiiitttteeeeLLLLeeeeaaaavvvveeeeCCCCaaaallllllllbbbbaaaacccckkkk, XXXXmmmmNNNNddddrrrraaaaggggMMMMoooottttiiiioooonnnnCCCCaaaallllllllbbbbaaaacccckkkk,
  212.                     or XXXXmmmmNNNNooooppppeeeerrrraaaattttiiiioooonnnnCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk callbacks).
  213.  
  214.           XXXXmmmmNNNNddddrrrrooooppppPPPPrrrroooocccc
  215.                     Specifies the procedure that is invoked when a
  216.                     drop (excluding a cancel or interrupt action)
  217.                     occurs on a drop site regardless of the status of
  218.                     the drop site.  The type of the structure whose
  219.                     address is passed to this procedure is
  220.                     XXXXmmmmDDDDrrrrooooppppPPPPrrrrooooccccCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt.  The reason sent to the
  221.                     procedure is XXXXmmmmCCCCRRRR____DDDDRRRROOOOPPPP____MMMMEEEESSSSSSSSAAAAGGGGEEEE.
  222.  
  223.                     The drop procedure may change the values of some
  224.                     members of the XXXXmmmmDDDDrrrrooooppppPPPPrrrrooooccccCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt passed to
  225.                     it.  After the drop procedure returns, the toolkit
  226.                     uses the final values in initializing some members
  227.                     of the XXXXmmmmDDDDrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt passed to the
  228.                     initiator's drop start callbacks (the
  229.                     DragContext's XXXXmmmmNNNNddddrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkk callbacks).
  230.  
  231.           XXXXmmmmNNNNddddrrrrooooppppRRRReeeeccccttttaaaannnngggglllleeeessss
  232.                     Specifies a list of rectangles that describe the
  233.                     shape of a drop site.  The locations of the
  234.                     rectangles are relative to the origin of the
  235.                     enclosing object.  When XXXXmmmmNNNNddddrrrrooooppppRRRReeeeccccttttaaaannnngggglllleeeessss is NULL,
  236.                     the drop site is assumed to be the sensitive area
  237.                     of the enclosing widget.  If XXXXmmmmNNNNddddrrrrooooppppSSSSiiiitttteeeeTTTTyyyyppppeeee is
  238.                     XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____CCCCOOOOMMMMPPPPOOOOSSSSIIIITTTTEEEE, this resource cannot be
  239.                     specified by the application.
  240.  
  241.           XXXXmmmmNNNNddddrrrrooooppppSSSSiiiitttteeeeAAAAccccttttiiiivvvviiiittttyyyy
  242.                     Indicates whether a drop site is active or
  243.                     inactive.  The values are XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____AAAACCCCTTTTIIIIVVVVEEEE and
  244.                     XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____IIIINNNNAAAACCCCTTTTIIIIVVVVEEEE.  An active drop site can
  245.                     receive a drop, whereas an inactive drop site is
  246.                     dormant.  An inactive drop site is treated as if
  247.                     it was not a registered drop site and any drag-
  248.                     under visuals associated with entering or leaving
  249.                     the drop site do not occur.  However, it is still
  250.                     used for clipping drag-under effects.
  251.  
  252.           XXXXmmmmNNNNddddrrrrooooppppSSSSiiiitttteeeeOOOOppppeeeerrrraaaattttiiiioooonnnnssss
  253.                     Specifies the set of valid operations associated
  254.                     with a drop site.  This resource is a bit mask
  255.                     that is formed by combining one or more of the
  256.                     following values using a bitwise operation such as
  257.                     inclusive OR (|):  XXXXmmmmDDDDRRRROOOOPPPP____CCCCOOOOPPPPYYYY, XXXXmmmmDDDDRRRROOOOPPPP____LLLLIIIINNNNKKKK, and
  258.  
  259.  
  260.  
  261.      Page 4                                          (printed 4/30/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  269.  
  270.  
  271.  
  272.                     XXXXmmmmDDDDRRRROOOOPPPP____MMMMOOOOVVVVEEEE.  The value XXXXmmmmDDDDRRRROOOOPPPP____NNNNOOOOOOOOPPPP for this
  273.                     resource indicates that no operations are valid.
  274.  
  275.           XXXXmmmmNNNNddddrrrrooooppppSSSSiiiitttteeeeTTTTyyyyppppeeee
  276.                     Specifies the type of the drop site. The possible
  277.                     values are
  278.  
  279.  
  280.                     XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____SSSSIIIIMMMMPPPPLLLLEEEE
  281.                       The widget does not have any additional children
  282.                       that are registered as drop sites.
  283.  
  284.                     XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____CCCCOOOOMMMMPPPPOOOOSSSSIIIITTTTEEEE
  285.                       The widget will have children that are
  286.                       registered as drop sites.
  287.  
  288.  
  289.           XXXXmmmmNNNNiiiimmmmppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss
  290.                     Specifies the list of target atoms that this drop
  291.                     site accepts.
  292.  
  293.           XXXXmmmmNNNNnnnnuuuummmmDDDDrrrrooooppppRRRReeeeccccttttaaaannnngggglllleeeessss
  294.                     Specifies the number of rectangles in the
  295.                     XXXXmmmmNNNNddddrrrrooooppppRRRReeeeccccttttaaaannnngggglllleeeessss list.  If the drop site type is
  296.                     XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____CCCCOOOOMMMMPPPPOOOOSSSSIIIITTTTEEEE, this resource can not be
  297.                     specified by the application.
  298.  
  299.           XXXXmmmmNNNNnnnnuuuummmmIIIImmmmppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss
  300.                     Specifies the number of atoms in the target atom
  301.                     list.
  302.  
  303.  
  304.         CCCCaaaallllllllbbbbaaaacccckkkk IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn
  305.           A pointer to the following structure is passed to the
  306.           XXXXmmmmNNNNddddrrrraaaaggggPPPPrrrroooocccc routine when the drop site receives crossing,
  307.           motion, or operation changed messages.
  308.  
  309.           ttttyyyyppppeeeeddddeeeeffff ssssttttrrrruuuucccctttt
  310.           {{{{
  311.                   iiiinnnntttt    _r_e_a_s_o_n;;;;
  312.             XXXXEEEEvvvveeeennnntttt       ****_e_v_e_n_t;;;;
  313.             TTTTiiiimmmmeeee         _t_i_m_e_S_t_a_m_p;;;;
  314.             WWWWiiiiddddggggeeeetttt       _d_r_a_g_C_o_n_t_e_x_t
  315.             PPPPoooossssiiiittttiiiioooonnnn     _x;;;;
  316.             PPPPoooossssiiiittttiiiioooonnnn     _y;;;;
  317.             uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr_d_r_o_p_S_i_t_e_S_t_a_t_u_s;;;;
  318.             uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr_o_p_e_r_a_t_i_o_n;;;;
  319.             uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr_o_p_e_r_a_t_i_o_n_s;;;;
  320.             BBBBoooooooolllleeeeaaaannnn      _a_n_i_m_a_t_e;;;;
  321.           }}}} XXXXmmmmDDDDrrrraaaaggggPPPPrrrrooooccccCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt,,,, ****XXXXmmmmDDDDrrrraaaaggggPPPPrrrrooooccccCCCCaaaallllllllbbbbaaaacccckkkk;;;;
  322.  
  323.  
  324.  
  325.  
  326.  
  327.      Page 5                                          (printed 4/30/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  335.  
  336.  
  337.  
  338.           _r_e_a_s_o_n      Indicates why the callback was invoked.
  339.  
  340.           _e_v_e_n_t       Points to the XXXXEEEEvvvveeeennnntttt that triggered the
  341.                       callback.
  342.  
  343.           _t_i_m_e_S_t_a_m_p   Specifies the timestamp of the logical event.
  344.  
  345.           _d_r_a_g_C_o_n_t_e_x_t Specifies the ID of the DragContext widget
  346.                       associated with the transaction.
  347.  
  348.           _x           Indicates the x-coordinate of the pointer
  349.                       relative to the drop site.
  350.  
  351.           _y           Indicates the y-coordinate of the pointer
  352.                       relative to the drop site.
  353.  
  354.           _d_r_o_p_S_i_t_e_S_t_a_t_u_s
  355.                       An IN/OUT member that indicates whether or not a
  356.                       drop site is valid.
  357.  
  358.                       When the _r_e_a_s_o_n is XXXXmmmmCCCCRRRR____DDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____EEEENNNNTTTTEEEERRRR____MMMMEEEESSSSSSSSAAAAGGGGEEEE
  359.                       or XXXXmmmmCCCCRRRR____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN____CCCCHHHHAAAANNNNGGGGEEEEDDDD____MMMMEEEESSSSSSSSAAAAGGGGEEEE, or when the
  360.                       reason is XXXXmmmmCCCCRRRR____DDDDRRRRAAAAGGGG____MMMMOOOOTTTTIIIIOOOONNNN____MMMMEEEESSSSSSSSAAAAGGGGEEEE or
  361.                       XXXXmmmmCCCCRRRR____DDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____LLLLEEEEAAAAVVVVEEEE____MMMMEEEESSSSSSSSAAAAGGGGEEEE and the pointer is
  362.                       not in the same drop site as on the previous
  363.                       invocation of the drag procedure, the toolkit
  364.                       initializes _d_r_o_p_S_i_t_e_S_t_a_t_u_s as follows:  the
  365.                       toolkit initializes _d_r_o_p_S_i_t_e_S_t_a_t_u_s to
  366.                       XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____VVVVAAAALLLLIIIIDDDD if the DragContext's
  367.                       XXXXmmmmNNNNeeeexxxxppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss and the DropSite's
  368.                       XXXXmmmmNNNNiiiimmmmppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss are compatible and if the
  369.                       initial value of the _o_p_e_r_a_t_i_o_n member is not
  370.                       XXXXmmmmDDDDRRRROOOOPPPP____NNNNOOOOOOOOPPPP.  Otherwise, the toolkit initializes
  371.                       _d_r_o_p_S_i_t_e_S_t_a_t_u_s to XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____IIIINNNNVVVVAAAALLLLIIIIDDDD.
  372.  
  373.                       When the _r_e_a_s_o_n is XXXXmmmmCCCCRRRR____DDDDRRRRAAAAGGGG____MMMMOOOOTTTTIIIIOOOONNNN____MMMMEEEESSSSSSSSAAAAGGGGEEEE or
  374.                       XXXXmmmmCCCCRRRR____DDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____LLLLEEEEAAAAVVVVEEEE____MMMMEEEESSSSSSSSAAAAGGGGEEEE and the pointer is
  375.                       within the same drop site as on the previous
  376.                       invocation of the drag procedure, the toolkit
  377.                       initializes _d_r_o_p_S_i_t_e_S_t_a_t_u_s to the value of
  378.                       _d_r_o_p_S_i_t_e_S_t_a_t_u_s at the time the previous
  379.                       invocation of the drag procedure returns.
  380.  
  381.                       The drag procedure may change the value of this
  382.                       member.  After the drag procedure returns, the
  383.                       toolkit uses the final value in initializing the
  384.                       _d_r_o_p_S_i_t_e_S_t_a_t_u_s member of the callback struct
  385.                       passed to the appropriate callbacks of the
  386.                       initiator.
  387.  
  388.           _o_p_e_r_a_t_i_o_n   An IN/OUT member that identifies an operation.
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                                          (printed 4/30/98)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  401.  
  402.  
  403.  
  404.                       The toolkit initializes _o_p_e_r_a_t_i_o_n by selecting
  405.                       an operation from the bitwise AND of the initial
  406.                       value of the _o_p_e_r_a_t_i_o_n_s member and the value of
  407.                       the DropSite's XXXXmmmmNNNNddddrrrrooooppppSSSSiiiitttteeeeOOOOppppeeeerrrraaaattttiiiioooonnnnssss resource.
  408.                       The toolkit searches this set first for
  409.                       XXXXmmmmDDDDRRRROOOOPPPP____MMMMOOOOVVVVEEEE, then for XXXXmmmmDDDDRRRROOOOPPPP____CCCCOOOOPPPPYYYY, then for
  410.                       XXXXmmmmDDDDRRRROOOOPPPP____LLLLIIIINNNNKKKK, and initializes _o_p_e_r_a_t_i_o_n to the
  411.                       first operation it finds in the set.  If the
  412.                       toolkit finds none of these operations in the
  413.                       set, it initializes _o_p_e_r_a_t_i_o_n to XXXXmmmmDDDDRRRROOOOPPPP____NNNNOOOOOOOOPPPP.
  414.  
  415.                       The drag procedure may change the value of this
  416.                       member.  After the drag procedure returns, the
  417.                       toolkit uses the final value in initializing the
  418.                       _o_p_e_r_a_t_i_o_n member of the callback struct passed
  419.                       to the appropriate callbacks of the initiator.
  420.  
  421.           _o_p_e_r_a_t_i_o_n_s  An IN/OUT member that indicates the set of
  422.                       operations supported for the source data.
  423.  
  424.                       If the user does not select an operation (by
  425.                       pressing a modifier key), the toolkit
  426.                       initializes _o_p_e_r_a_t_i_o_n_s to the value of the
  427.                       DragContext's XXXXmmmmNNNNddddrrrraaaaggggOOOOppppeeeerrrraaaattttiiiioooonnnnssss resource.  If
  428.                       the user does select an operation, the toolkit
  429.                       initializes _o_p_e_r_a_t_i_o_n_s to the bitwise AND of the
  430.                       corresponding operation and the value of the
  431.                       DragContext's XXXXmmmmNNNNddddrrrraaaaggggOOOOppppeeeerrrraaaattttiiiioooonnnnssss resource.  If
  432.                       the resulting set of operations is empty, the
  433.                       toolkit initializes _o_p_e_r_a_t_i_o_n_s to XXXXmmmmDDDDRRRROOOOPPPP____NNNNOOOOOOOOPPPP.
  434.  
  435.                       The drag procedure may change the value of this
  436.                       member.  After the drag procedure returns, the
  437.                       toolkit uses the final value in initializing the
  438.                       _o_p_e_r_a_t_i_o_n_s member of the callback struct passed
  439.                       to the appropriate callbacks of the initiator.
  440.  
  441.           _a_n_i_m_a_t_e     An OUT member that indicates whether the toolkit
  442.                       or the receiver client provides drag-under
  443.                       effects for a valid drop site.  If _a_n_i_m_a_t_e is
  444.                       set to True, the toolkit provides drop site
  445.                       animation per the XXXXmmmmNNNNaaaannnniiiimmmmaaaattttiiiioooonnnnSSSSttttyyyylllleeee resource
  446.                       value; if it is set to False, the receiver
  447.                       generates drag-under animation effects.
  448.  
  449.  
  450.           A pointer to the following structure is passed to the
  451.           XXXXmmmmNNNNddddrrrrooooppppPPPPrrrroooocccc routine when the drop site receives a drop
  452.           message:
  453.  
  454.           ttttyyyyppppeeeeddddeeeeffff ssssttttrrrruuuucccctttt
  455.           {{{{
  456.  
  457.  
  458.  
  459.      Page 7                                          (printed 4/30/98)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  467.  
  468.  
  469.  
  470.                   iiiinnnntttt    _r_e_a_s_o_n;;;;
  471.             XXXXEEEEvvvveeeennnntttt       ****_e_v_e_n_t;;;;
  472.             TTTTiiiimmmmeeee         _t_i_m_e_S_t_a_m_p;;;;
  473.             WWWWiiiiddddggggeeeetttt       _d_r_a_g_C_o_n_t_e_x_t;;;;
  474.             PPPPoooossssiiiittttiiiioooonnnn     _x;;;;
  475.             PPPPoooossssiiiittttiiiioooonnnn     _y;;;;
  476.             uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr_d_r_o_p_S_i_t_e_S_t_a_t_u_s;;;;
  477.             uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr_o_p_e_r_a_t_i_o_n;;;;
  478.             uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr_o_p_e_r_a_t_i_o_n_s;;;;
  479.             uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr_d_r_o_p_A_c_t_i_o_n;;;;
  480.           }}}} XXXXmmmmDDDDrrrrooooppppPPPPrrrrooooccccCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt,,,, ****XXXXmmmmDDDDrrrrooooppppPPPPrrrrooooccccCCCCaaaallllllllbbbbaaaacccckkkk;;;;
  481.  
  482.  
  483.           _r_e_a_s_o_n      Indicates why the callback was invoked.
  484.  
  485.           _e_v_e_n_t       Specifies the XXXXEEEEvvvveeeennnntttt that triggered the
  486.                       callback.
  487.  
  488.           _t_i_m_e_S_t_a_m_p   Specifies the timestamp of the logical event.
  489.  
  490.           _d_r_a_g_C_o_n_t_e_x_t Specifies the ID of the DragContext widget
  491.                       associated with the transaction.
  492.  
  493.           _x           Indicates the x-coordinate of the pointer
  494.                       relative to the drop site.
  495.  
  496.           _y           Indicates the y-coordinate of the pointer
  497.                       relative to the drop site.
  498.  
  499.           _d_r_o_p_S_i_t_e_S_t_a_t_u_s
  500.                       An IN/OUT member that indicates whether or not a
  501.                       drop site is valid.
  502.  
  503.                       The toolkit initializes _d_r_o_p_S_i_t_e_S_t_a_t_u_s to
  504.                       XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____VVVVAAAALLLLIIIIDDDD if the DragContext's
  505.                       XXXXmmmmNNNNeeeexxxxppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss and the DropSite's
  506.                       XXXXmmmmNNNNiiiimmmmppppoooorrrrttttTTTTaaaarrrrggggeeeettttssss are compatible and if the
  507.                       initial value of the _o_p_e_r_a_t_i_o_n member is not
  508.                       XXXXmmmmDDDDRRRROOOOPPPP____NNNNOOOOOOOOPPPP.  Otherwise, the toolkit initializes
  509.                       _d_r_o_p_S_i_t_e_S_t_a_t_u_s to XXXXmmmmDDDDRRRROOOOPPPP____SSSSIIIITTTTEEEE____IIIINNNNVVVVAAAALLLLIIIIDDDD.
  510.  
  511.                       The drop procedure may change the value of this
  512.                       member.  After the drop procedure returns, the
  513.                       toolkit uses the final value in initializing the
  514.                       _d_r_o_p_S_i_t_e_S_t_a_t_u_s member of the
  515.                       XXXXmmmmDDDDrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt passed to the
  516.                       initiator's drop start callbacks (the
  517.                       DragContext's XXXXmmmmNNNNddddrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkk callbacks).
  518.  
  519.           _o_p_e_r_a_t_i_o_n   An IN/OUT member that identifies an operation.
  520.  
  521.                       The toolkit initializes _o_p_e_r_a_t_i_o_n by selecting
  522.  
  523.  
  524.  
  525.      Page 8                                          (printed 4/30/98)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  533.  
  534.  
  535.  
  536.                       an operation from the bitwise AND of the initial
  537.                       value of the _o_p_e_r_a_t_i_o_n_s member and the value of
  538.                       the DropSite's XXXXmmmmNNNNddddrrrrooooppppSSSSiiiitttteeeeOOOOppppeeeerrrraaaattttiiiioooonnnnssss resource.
  539.                       The toolkit searches this set first for
  540.                       XXXXmmmmDDDDRRRROOOOPPPP____MMMMOOOOVVVVEEEE, then for XXXXmmmmDDDDRRRROOOOPPPP____CCCCOOOOPPPPYYYY, then for
  541.                       XXXXmmmmDDDDRRRROOOOPPPP____LLLLIIIINNNNKKKK, and initializes _o_p_e_r_a_t_i_o_n to the
  542.                       first operation it finds in the set.  If it
  543.                       finds none of these operations in the set, it
  544.                       initializes _o_p_e_r_a_t_i_o_n to XXXXmmmmDDDDRRRROOOOPPPP____NNNNOOOOOOOOPPPP.
  545.  
  546.                       The drop procedure may change the value of this
  547.                       member.  After the drop procedure returns, the
  548.                       toolkit uses the final value in initializing the
  549.                       _o_p_e_r_a_t_i_o_n member of the
  550.                       XXXXmmmmDDDDrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt passed to the
  551.                       initiator's drop start callbacks (the
  552.                       DragContext's XXXXmmmmNNNNddddrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkk callbacks).
  553.  
  554.           _o_p_e_r_a_t_i_o_n_s  An IN/OUT member that indicates the set of
  555.                       operations supported for the source data.
  556.  
  557.                       If the user does not select an operation (by
  558.                       pressing a modifier key), the toolkit
  559.                       initializes _o_p_e_r_a_t_i_o_n_s to the value of the
  560.                       DragContext's XXXXmmmmNNNNddddrrrraaaaggggOOOOppppeeeerrrraaaattttiiiioooonnnnssss resource.  If
  561.                       the user does select an operation, the toolkit
  562.                       initializes _o_p_e_r_a_t_i_o_n_s to the bitwise AND of the
  563.                       corresponding operation and the value of the
  564.                       DragContext's XXXXmmmmNNNNddddrrrraaaaggggOOOOppppeeeerrrraaaattttiiiioooonnnnssss resource.  If
  565.                       the resulting set of operations is empty, the
  566.                       toolkit initializes _o_p_e_r_a_t_i_o_n_s to XXXXmmmmDDDDRRRROOOOPPPP____NNNNOOOOOOOOPPPP.
  567.  
  568.                       The drop procedure may change the value of this
  569.                       member.  After the drop procedure returns, the
  570.                       toolkit uses the final value in initializing the
  571.                       _o_p_e_r_a_t_i_o_n_s member of the
  572.                       XXXXmmmmDDDDrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt passed to the
  573.                       initiator's drop start callbacks (the
  574.                       DragContext's XXXXmmmmNNNNddddrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkk callbacks).
  575.  
  576.           _d_r_o_p_A_c_t_i_o_n  An IN/OUT member that identifies the action
  577.                       associated with the drop.  The possible values
  578.                       are
  579.  
  580.  
  581.                       XXXXmmmmDDDDRRRROOOOPPPP
  582.                          A drop was attempted.  If the drop site is
  583.                          valid, drop transfer handling proceeds.
  584.  
  585.                       XXXXmmmmDDDDRRRROOOOPPPP____HHHHEEEELLLLPPPP
  586.                          The user has requested help on the drop site.
  587.  
  588.  
  589.  
  590.  
  591.      Page 9                                          (printed 4/30/98)
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))            UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV            XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeee((((3333XXXX))))
  599.  
  600.  
  601.  
  602.                       The drop procedure may change the value of this
  603.                       member.  After the drop procedure returns, the
  604.                       toolkit uses the final value in initializing the
  605.                       _d_r_o_p_A_c_t_i_o_n member of the
  606.                       XXXXmmmmDDDDrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkkSSSSttttrrrruuuucccctttt passed to the
  607.                       initiator's drop start callbacks (the
  608.                       DragContext's XXXXmmmmNNNNddddrrrrooooppppSSSSttttaaaarrrrttttCCCCaaaallllllllbbbbaaaacccckkkk callbacks).
  609.  
  610.  
  611.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  612.           XXXXmmmmDDDDrrrraaaaggggCCCCoooonnnntttteeeexxxxtttt((((3333XXXX)))), XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn((((3333XXXX)))),
  613.           XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeCCCCoooonnnnffffiiiigggguuuurrrreeeeSSSSttttaaaacccckkkkiiiinnnnggggOOOOrrrrddddeeeerrrr((((3333XXXX)))),
  614.           XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeEEEEnnnnddddUUUUppppddddaaaatttteeee((((3333XXXX)))), XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeQQQQuuuueeeerrrryyyySSSSttttaaaacccckkkkiiiinnnnggggOOOOrrrrddddeeeerrrr((((3333)))),
  615.           XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeRRRReeeeggggiiiisssstttteeeerrrr((((3333XXXX)))), XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeSSSSttttaaaarrrrttttUUUUppppddddaaaatttteeee((((3333XXXX)))),
  616.           XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeUUUUppppddddaaaatttteeee((((3333XXXX)))), XXXXmmmmDDDDrrrrooooppppSSSSiiiitttteeeeUUUUnnnnrrrreeeeggggiiiisssstttteeeerrrr((((3333XXXX)))),
  617.           XXXXmmmmDDDDrrrrooooppppTTTTrrrraaaannnnssssffffeeeerrrr((((3333XXXX)))), and XXXXmmmmTTTTaaaarrrrggggeeeettttssssAAAArrrreeeeCCCCoooommmmppppaaaattttiiiibbbblllleeee((((3333XXXX)))).
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.      Page 10                                         (printed 4/30/98)
  658.  
  659.  
  660.  
  661.